<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
            /* 通过设置 font-size 来改变图标大小 */
            width: 1em;
            height: 1em;
            /* 图标和文字相邻时，垂直对齐 */
            vertical-align: -0.15em;
            /* 通过设置 color 来改变 SVG 的颜色/fill */
            fill: currentColor;
            /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
               normalize.css 中也包含这行 */
            overflow: hidden;
        }

    </style>
</head>
<body>
<div class="main markdown">
    <h1>IconFont 图标</h1>
    <ul class="icon_lists clear">

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-poweroff"></use>
            </svg>
            <div class="name">power-off</div>
            <div class="fontclass">#icon-poweroff</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-home"></use>
            </svg>
            <div class="name">home</div>
            <div class="fontclass">#icon-home</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-password"></use>
            </svg>
            <div class="name">password</div>
            <div class="fontclass">#icon-password</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-yanzhengma"></use>
            </svg>
            <div class="name">验证码</div>
            <div class="fontclass">#icon-yanzhengma</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-0201chazhao"></use>
            </svg>
            <div class="name">find</div>
            <div class="fontclass">#icon-0201chazhao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-yanzhengma1"></use>
            </svg>
            <div class="name">验证码</div>
            <div class="fontclass">#icon-yanzhengma1</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-shenfenzheng"></use>
            </svg>
            <div class="name">身份证</div>
            <div class="fontclass">#icon-shenfenzheng</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jiantoushang"></use>
            </svg>
            <div class="name">箭头 上</div>
            <div class="fontclass">#icon-jiantoushang</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jiantoushang1"></use>
            </svg>
            <div class="name">箭头 上</div>
            <div class="fontclass">#icon-jiantoushang1</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jiantouyou"></use>
            </svg>
            <div class="name">箭头 右</div>
            <div class="fontclass">#icon-jiantouyou</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jiantouxia"></use>
            </svg>
            <div class="name">箭头 下</div>
            <div class="fontclass">#icon-jiantouxia</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-tiaoshi"></use>
            </svg>
            <div class="name">调试</div>
            <div class="fontclass">#icon-tiaoshi</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-changjingguanli"></use>
            </svg>
            <div class="name">场景管理</div>
            <div class="fontclass">#icon-changjingguanli</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-fenxiangfangshi"></use>
            </svg>
            <div class="name">分享方式</div>
            <div class="fontclass">#icon-fenxiangfangshi</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-bianji"></use>
            </svg>
            <div class="name">编辑</div>
            <div class="fontclass">#icon-bianji</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jichuguanli"></use>
            </svg>
            <div class="name">基础管理</div>
            <div class="fontclass">#icon-jichuguanli</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jinggao"></use>
            </svg>
            <div class="name">警告</div>
            <div class="fontclass">#icon-jinggao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-quanxianshenpi"></use>
            </svg>
            <div class="name">权限审批</div>
            <div class="fontclass">#icon-quanxianshenpi</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-zidingyi"></use>
            </svg>
            <div class="name">自定义</div>
            <div class="fontclass">#icon-zidingyi</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-xiajiantou"></use>
            </svg>
            <div class="name">下箭头</div>
            <div class="fontclass">#icon-xiajiantou</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-icon_loading"></use>
            </svg>
            <div class="name">icon_loading</div>
            <div class="fontclass">#icon-icon_loading</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-icon_yiwenkongxin"></use>
            </svg>
            <div class="name">icon_疑问空心</div>
            <div class="fontclass">#icon-icon_yiwenkongxin</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-icon_yulan"></use>
            </svg>
            <div class="name">icon_预览</div>
            <div class="fontclass">#icon-icon_yulan</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-icon_zhanghao"></use>
            </svg>
            <div class="name">icon_账号</div>
            <div class="fontclass">#icon-icon_zhanghao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-tubiao-qiapian"></use>
            </svg>
            <div class="name">图表-卡片</div>
            <div class="fontclass">#icon-tubiao-qiapian</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-gongyezujian-zhishideng"></use>
            </svg>
            <div class="name">工业组件-指示灯</div>
            <div class="fontclass">#icon-gongyezujian-zhishideng</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-tubiao-zhuzhuangtu"></use>
            </svg>
            <div class="name">图表-柱状图</div>
            <div class="fontclass">#icon-tubiao-zhuzhuangtu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-jishufuwu"></use>
            </svg>
            <div class="name">技术服务</div>
            <div class="fontclass">#icon-jishufuwu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-miwen"></use>
            </svg>
            <div class="name">密文</div>
            <div class="fontclass">#icon-miwen</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-xianhao"></use>
            </svg>
            <div class="name">显号</div>
            <div class="fontclass">#icon-xianhao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-duigou"></use>
            </svg>
            <div class="name">对勾</div>
            <div class="fontclass">#icon-duigou</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-xiayibu"></use>
            </svg>
            <div class="name">下一步</div>
            <div class="fontclass">#icon-xiayibu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-shangyibu"></use>
            </svg>
            <div class="name">上一步</div>
            <div class="fontclass">#icon-shangyibu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-shuaxin"></use>
            </svg>
            <div class="name">刷新</div>
            <div class="fontclass">#icon-shuaxin</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-baocun"></use>
            </svg>
            <div class="name">保存</div>
            <div class="fontclass">#icon-baocun</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-fabu"></use>
            </svg>
            <div class="name">发布</div>
            <div class="fontclass">#icon-fabu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-xiayibu1"></use>
            </svg>
            <div class="name">下一步</div>
            <div class="fontclass">#icon-xiayibu1</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-info-circle"></use>
            </svg>
            <div class="name">info-circle</div>
            <div class="fontclass">#icon-info-circle</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-suoxiao"></use>
            </svg>
            <div class="name">缩小</div>
            <div class="fontclass">#icon-suoxiao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-fangda"></use>
            </svg>
            <div class="name">放大</div>
            <div class="fontclass">#icon-fangda</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-gengduo"></use>
            </svg>
            <div class="name">更多</div>
            <div class="fontclass">#icon-gengduo</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-yunduanxiazai"></use>
            </svg>
            <div class="name">云端下载</div>
            <div class="fontclass">#icon-yunduanxiazai</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-yunduanshangchuan"></use>
            </svg>
            <div class="name">云端上传</div>
            <div class="fontclass">#icon-yunduanshangchuan</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dian"></use>
            </svg>
            <div class="name">点</div>
            <div class="fontclass">#icon-dian</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-wentijieda"></use>
            </svg>
            <div class="name">问题解答</div>
            <div class="fontclass">#icon-wentijieda</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-kefu"></use>
            </svg>
            <div class="name">客服</div>
            <div class="fontclass">#icon-kefu</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-ditu-dibiao"></use>
            </svg>
            <div class="name">地图-地标</div>
            <div class="fontclass">#icon-ditu-dibiao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-liebiao"></use>
            </svg>
            <div class="name">列表</div>
            <div class="fontclass">#icon-liebiao</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-mysql"></use>
            </svg>
            <div class="name">mysql</div>
            <div class="fontclass">#icon-mysql</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-liebiaomoshi_kuai"></use>
            </svg>
            <div class="name">列表模式_块</div>
            <div class="fontclass">#icon-liebiaomoshi_kuai</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dianzan_kuai"></use>
            </svg>
            <div class="name">点赞_块</div>
            <div class="fontclass">#icon-dianzan_kuai</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-aixin_shixin"></use>
            </svg>
            <div class="name">爱心 _实心</div>
            <div class="fontclass">#icon-aixin_shixin</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-accessory"></use>
            </svg>
            <div class="name">accessory</div>
            <div class="fontclass">#icon-accessory</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-people_fill"></use>
            </svg>
            <div class="name">people_fill</div>
            <div class="fontclass">#icon-people_fill</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-people"></use>
            </svg>
            <div class="name">people</div>
            <div class="fontclass">#icon-people</div>
        </li>

        <li>
            <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-user"></use>
            </svg>
            <div class="name">user</div>
            <div class="fontclass">#icon-user</div>
        </li>

    </ul>


    <h2 id="symbol-">symbol引用</h2>
    <hr>

    <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
    <ul>
        <li>支持多色图标了，不再受单色限制。</li>
        <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
        <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
        <li>浏览器渲染svg的性能一般，还不如png。</li>
    </ul>
    <p>使用步骤如下：</p>
    <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
    <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
    <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
    <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
    <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
    <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span
            class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span
            class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span
            class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span
            class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
</div>
</body>
</html>
